package com.atbeijing.gmall.service.impl;

import com.atbeijing.gmall.bean.VisitorStats;
import com.atbeijing.gmall.mapper.VisitorStatsMapper;
import com.atbeijing.gmall.service.VisitorStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class VisitorStatsServiceImpl implements VisitorStatsService {

    @Autowired
    VisitorStatsMapper visitorStatsMapper;

    @Override
    public List<VisitorStats> selectVisitorStatsByIsNew(Integer date) {
        return visitorStatsMapper.selectVisitorStatsByIsNew(date);
    }

    @Override
    public List<VisitorStats> selectVisitorStatsByHour(Integer date) {
        return visitorStatsMapper.selectVisitorStatsByHour(date);
    }
}
